﻿package cn.snowkit.uitls
{
    import flash.display.*;
    import flash.ui.*;
    import flash.utils.*;

    public class VersionUtil extends Object
    {

        public function VersionUtil()
        {
            return;
        }// end function

        public static function setRightMenu(param1:Class, param2:Sprite, param3:String) : void
        {
            var _loc_4:* = new param1 as ByteArray;
            var _loc_5:* = new XML(_loc_4.readUTFBytes(_loc_4.length));
            param3 = param3.replace("@build", _loc_5.build.@count);
            param3 = param3.replace("@release", _loc_5.release.@count);
            param2.contextMenu = param2.contextMenu || new ContextMenu();
            param2.contextMenu.hideBuiltInItems();
            param2.contextMenu.customItems.push(new ContextMenuItem(param3, false, false));
            return;
        }// end function

    }
}
